﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RemoteManger
{
    public partial class DllMerge : Form
    {
        public DllMerge()
        {
            InitializeComponent();
        }
        public List<string> files = new List<string>();
        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.Multiselect = true;
            openFileDialog.Title = "选择多个文件";
            openFileDialog.Filter = "所有文件(*.dll)|*.*";
            files.Clear();
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                foreach (string filePath in openFileDialog.FileNames)
                {
                    // 在这里对选择的每个文件进行处理
                    Console.WriteLine("选择的文件: " + filePath);
                }
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
           string path= txtmbpath.Text;
            string curentpath="";
            if (!Directory.Exists(curentpath))
            {
                Directory.CreateDirectory(curentpath);

            }
            string mupath=Path.Combine(curentpath, path);
            string outputDll = "MergedAssembly.dll";
            string[] inputDlls = { "Assembly1.dll", "Assembly2.dll" };
             
            //ILMerge merger = new ILMerge();
            //merger.OutputFile = outputDll;
            //merger.SetInputAssemblies(inputDlls);
            //merger.Merge();
        }
    }
}
